﻿using AutoMapper;
using J.M.Inventory.Domain.DTO;
using J.M.Inventory.Domain.Entity;

namespace J.M.Inventory.Read.API.MyReadAutomapper
{
    public class AutomapperfileRead:Profile
    {
        public AutomapperfileRead()
        {
            CreateMap<WarehouseDTO, warehouse>().ReverseMap();
            CreateMap<stock_managementDTO, warehouse>().ReverseMap();
            CreateMap<stock_managementDTO, stock_management>().ReverseMap();
            CreateMap<stock_managementDTO, enter_warehouse>().ReverseMap();
            //添加入库信息
            CreateMap<Stock_managementAddDTO, stock_management>().ReverseMap();
            //显示盘点
            CreateMap<examine_warehouseDTO, examine_warehouse>().ReverseMap();
            //销售单列表
            CreateMap<ListenterwarehouesDTO, enterwarehoues>().ReverseMap();
            //添加销售列表    
            CreateMap<enterwarehouesAddDTO, enterwarehoues>().ReverseMap();
        }
    }
}
